Target = test
objects = main.o adc.o led.o core_cm3.o gpio.o ds18b20.o

$(Target):$(objects)
	gcc -o $(Target) $(objects)
main.o : main.c
	gcc -c main.c -ICMSIS -IFWlib/inc -IHardWare/ds18b20 -IHardWare/led
adc.o  : FWlib/src/adc.c FWlib/inc/adc.h
	gcc -c FWlib/src/adc.c -IFWlib/inc
led.o  : HardWare/led/led.c HardWare/led/led.h
	gcc -c HardWare/led/led.c
core_cm3.o :CMSIS/core_cm3.c CMSIS/core_cm3.h
	gcc -c CMSIS/core_cm3.c
gpio.o : FWlib/src/gpio.c FWlib/inc/gpio.h
	gcc -c FWlib/src/gpio.c -IFWlib/inc
ds18b20.o : HardWare/ds18b20/ds18b20.c HardWare/ds18b20/ds18b20.h
	gcc -c HardWare/ds18b20/ds18b20.c

.PHONY : clean
clean :
	rm $(Target) *.o
 
